package com.ruge._08_springboot_springdata_jpa.controller._03_mapping._05_component;

import lombok.*;

import javax.persistence.Embeddable;

@Data
//表示当前对象是可以嵌入到其他对象中的
@Embeddable
@NoArgsConstructor
@AllArgsConstructor
public class ComponentAddress {
    private String province;//省
    private String city;//市
    private String street;//街道
}
